package com.zjw.demo.vertx.starter.template.convert;

import com.zjw.demo.vertx.starter.template.bean.User;
import io.vertx.sqlclient.Row;

public class UserRowConvert implements IRowConvert<User> {

  @Override
  public User convert(Row row) {
    String username = row.getString(0);
    String password = row.getString(1);
    User user = new User();
    user.password = password;
    user.username = username;
    return user;
  }
}
